Home Install Usage Learn E.Book MAP
Showing posts with label BT-Basic Usage. Show all posts
Showing posts with label BT-Basic Usage. Show all posts

Thursday, November 10, 2011

Java Install

NOTE: Before installing Java make sure you kill Firefox.
root@bt:~# killall -9 /opt/firefox/firefox-bin
  • Downloading Java.
We can download java using wget.

root@bt:~# wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=52240 -O /tmp/java.bin
  • Creating the directories and running the self extraction.
root@bt:~# mkdir -p /opt/java && cd /opt/java
root@bt:~# chmod +x /tmp/java.bin && /tmp/java.bin 

How to prepare BT5 kernel sources

Occasionally you might want to compile code that requires kernel headers (such as compat-wireless, or other drivers). These are quick instructions on how to do so.

root@bt:~# prepare-kernel-sources
root@bt:~# cd /usr/src/linux
root@bt:~# cp -rf include/generated/* include/linux/ 
NOTE: You need to be connected to the internet in order to download the linux-source package.

ပထမဆုံးအေနျဖင့္ ဒီအပုိင္းေတြကုိပုိင္နုိင္ေအာင္လုပ္ပါ..


Other Basic Usages In BackTrack 5

Changing the root password

As you know Backtrack comes with a default username and password (root/toor) it is IMPORTANT that we change that root password especially when running services such as SSH. We can change the password by issuing the passwd command:
root@bt:~# passwd Enter new UNIX password: {enter your new password here } Retype new UNIX password: {enter your new password again} passwd: password updated successfully root@bt:~#


Starting services

BackTrack has various services such as Apache, SSH, MySQL, VNC, etc. They are all disabled by default. To start a service such as SSH, you can use the service init scripts. For example, to start the SSH service:
root@bt:~# sshd-generate  # Specific to the SSH service - needed to generate SSH keys
root@bt:~# /etc/init.d/ssh start
Starting OpenBSD Secure Shell server: sshd.
root@bt:~# /etc/init.d/ssh stop 
Stopping OpenBSD Secure Shell server: sshd.
root@bt:~# 
When using a ssh server for the first time on Backtrack you will need to generate keys:
root@bt:~# sshd-generate
To enable a service at boot time, you can use the update-rc.d command, for example, having SSH start at boot time:
root@bt:~# update-rc.d -f ssh defaults
 Adding system startup for /etc/init.d/ssh ...
  /etc/rc0.d/K20ssh -> ../init.d/ssh
  /etc/rc1.d/K20ssh -> ../init.d/ssh
  /etc/rc6.d/K20ssh -> ../init.d/ssh
  /etc/rc2.d/S20ssh -> ../init.d/ssh
  /etc/rc3.d/S20ssh -> ../init.d/ssh
  /etc/rc4.d/S20ssh -> ../init.d/ssh
  /etc/rc5.d/S20ssh -> ../init.d/ssh
root@bt:~#

Getting Networking to work In BackTrack 5

If you haven’t noticed yet BackTrack does not boot with networking by default in order to increase its stealth.

Setting your IP manually

We will first set up the networking manually. In the following example we will assume the following addresses and their purpose:
IP Address      -  192.168.1.112/24
   Default Gateway -  192.168.1.1
   DNS server      -  192.168.1.1
In order to set these up we will run the following commands:
root@bt:~# ifconfig eth0 192.168.1.112/24
root@bt:~# route add default gw 192.168.1.1
root@bt:~# echo nameserver 192.168.1.1 > /etc/resolv.conf 

Logging in to BackTrack

Once the installation of BackTrack is done, the default username and password required to log in are root / toor.
NOTE: You will not be able to see the password as you type it.

Starting a GUI Environment

After you are logged in you can start the GUI Environment by issuing the startx command.

X wont start!

In rare occasions (such as after a VMware tools install, or when using unsupported Video cards), X will refuse to start. If that happens you have several options you can try in order to fix the issue:
  • Reconfiguring the X server package, you can reset (and often fix) Xorg configurations with the following command:
root@bt:~# dpkg-reconfigure xserver-xorg
  • If you are using Backtrack 5 on x64 with KDE you should try the following:
root@bt:~# rm /root/.kde/cache-*

NOTE: Sometimes you may need to also remove the cache folders in /var/tmp by issuing the following command:
root@bt:~# rm -rf /var/tmp/kdecache-*
Related Posts Plugin for WordPress, Blogger...